import request from '@/utils/request.js'

// 获取列表
export const getcateListApi = (url,params)=>{
    return request({
        url:url,
        method:'get',
        params
    })
}
// 获取列表2
export const getcateListApi2 = (data)=>{
    return request({
        url:'/content/cate',
        method:'get',
        data
    })
}

// 获取详情
export const getcateInfoApi = (id)=>{
    return request({
        url:'/content/cate/'+id,
        method:'get',
    })
}

// 新增数据
export const addcateApi = (data)=>{
    return request({
        url:'/content/cate',
        method:'post',
        data
    })
}

// 修改数据
export const editcateApi = (data)=>{
    return request({
        url:'/content/cate/'+data.id,
        method:'put',
        data
    })
}

// 删除
export const delcateApi = (id)=>{
    return request({
        url:'/content/cate/'+id,
        method:'delete'
    })
}
